package com.base.service.workflow.entity;

import java.util.List;

import com.base.core.framework.sql.entity.BaseV1Ext;
import com.base.core.head.converter.ListLongConverterEditor;
import com.base.service.workflow.bo.ProcessStatusEnum;
import com.gitee.magic.core.converter.PropertyConverter;
import com.gitee.magic.jdbc.persistence.annotation.Entity;
import com.gitee.magic.jdbc.persistence.annotation.Table;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.ColumnDef;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.Indexes;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.TableDef;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.indexes.Normal;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author start 
 */
@Getter@Setter@ToString
@Entity("process")
@Table("wor_process")
@TableDef(comment = "流程实例")
public class ProcessDO extends BaseV1Ext {

	private static final long serialVersionUID = 1L;
	
	public ProcessDO(){}

	@ColumnDef(indexes = @Indexes(normal = @Normal),comment = "部署ID")
	private Long deploymentId;

	@ColumnDef(indexes = @Indexes(normal = @Normal),comment = "用户ID")
	private Long userId;
	
	@ColumnDef(comment = "状态")
	private ProcessStatusEnum status;

	@ColumnDef(length=64,comment = "回调Bean类")
	private String bean;
	
	@PropertyConverter(ListLongConverterEditor.class)
	@ColumnDef(comment = "cc用户ID")
	private List<Long> ccUserIds;

}
